package com.itfenxiang.tools.sys.controller;

import com.itfenxiang.tools.sys.utils.SystemInfoUtils;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description: TODO
 * @author: 墨凡
 * @date: 2024/4/29 20:39
 * @version: 1.0
 */
@RestController
@AllArgsConstructor
@RequestMapping("sys")
public class SystemController {


    @GetMapping("cpuInfo")
    public String getInfo() {
        return SystemInfoUtils.getCpuInfo().toString();
    }

}
